package org.example.brave.http;

import brave.SpanCustomizer;
import brave.internal.Nullable;

/** @deprecated Since 5.10, use {@link HttpRequestParser} and {@link HttpResponseParser} */
@Deprecated public class HttpServerParser extends HttpParser {

    /**
     * Customizes the span based on the request received from the client.
     *
     * <p>{@inheritDoc}
     */
    @Override public <Req> void request(HttpAdapter<Req, ?> adapter, Req req,
                                        SpanCustomizer customizer) {
        super.request(adapter, req, customizer);
    }

    /**
     * Customizes the span based on the response sent to the client.
     *
     * <p>{@inheritDoc}
     */
    @Override public <Resp> void response(HttpAdapter<?, Resp> adapter, @Nullable Resp res,
                                          @Nullable Throwable error, SpanCustomizer customizer) {
        super.response(adapter, res, error, customizer);
    }
}
